async function handle(){
  // 相当于 return new Promise(()=>{
     return 'hello'
  // })
 
}

const res=handle()
console.log(res);


function testAsy(x){
  return new Promise(resolve=>{setTimeout(() => {
      resolve(x);
    }, 3000)
   }
  )
}
async function testAwt(){    
 let result =  await testAsy('hello world');
 console.log(result);    // 3秒钟之后出现hello world
 console.log('tangj')   // 3秒钟之后出现tangj
}
testAwt();
console.log('tangSir')  //立即输出tangSir